const path = require('path')
module.exports = {
  // entry: path.join(__dirname,'index.js') // 单入口文件.
  entry: {
    app: path.join(__dirname,'index.js'),
    appDomain: path.join(__dirname,'domain.js')
  },
  output: {
    path: path.join(__dirname, 'dist'),
    filename:'[name].js'  // 通过占位符
  },
  mode: 'production'
}